﻿<?php
	include 'author.php';
	$msg		= $_GET["msg"];
	$sender  	= $_GET["sender"];
	$receiver	= $_GET["receiver"];
	$time		= date("Y-m-d H:i:s",time());

	$query    = "INSERT INTO app_sb_msg (message, receiver, sender, date) VALUES ('$msg', '$receiver', '$sender', '$time')";
	mysql_query("SET NAMES utf8");
	mysql_query($query, $dbConn) or die(mysql_error());
	$output = "success";

	echo "{\"result\":\"$output\"}";
	mysql_close($dbConn);
?>